package com.yourenbang.lingyun.transaction;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@Slf4j
@SpringBootApplication(scanBasePackages = {"com.yourenbang"}, exclude = DataSourceAutoConfiguration.class)
@ComponentScan("com.yourenbang")
@MapperScan({"com.yourenbang.lingyun.**.mapper"})
@ImportResource({"classpath*:spring-mvc.xml"})
@EnableEurekaClient
@EnableFeignClients({"com.yourenbang.mcenter.api","com.yourenbang.ucenter.api","com.yourenbang.terminal.api","com.yourenbang.mall.api",
        "com.yourenbang.merchant.api","com.yourenbang.market.api","com.yourenbang.lingyun.openapi.api","com.yourenbang.settlement.api"})
public class TransactionApplication {

    public static void main(String[] args) {
        SpringApplication.run(TransactionApplication.class, args);
        System.out.println("transaction start success...");
    }


}
